<%--
  Created by IntelliJ IDEA.
  User: ·6米
  Date: 2021/10/6
  Time: 16:18
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户评论</title>
    <script src="${pageContext.request.contextPath}/js/jquery-3.3.1.min.js"></script>
    <!--导入css文件-->
    <link href="${pageContext.request.contextPath}/css/review.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/css/index.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/css/store.css" rel="stylesheet">
    <link rel="shortcut icon" href="${pageContext.request.contextPath}/image/title-img1.png">

    <style>

        /* 头部导航的 */
        .global-header .login-page-header-nav li {
            float: left;
            margin-left: 30px;
        }
        .global-header .login-page-header-nav li i {
            margin-right: 10px;
            font-size: 28px;
            line-height: 1;
            color: #f6a206;
            vertical-align: middle;
        }
        .global-login-iconfont {
            font-family: "login-iconfont",serif;
            font-style: normal;
            font-weight: normal;
            cursor: default;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            *zoom: 1;
        }
        .global-header .login-page-header-nav li span {
            font-size: 14px;
            line-height: 28px;
            color: #666;
            vertical-align: middle;
        }
    </style>
</head>

<link rel="stylesheet" href="${pageContext.request.contextPath}/css/index-1.css">
<link href="${pageContext.request.contextPath}/css/headermenu.css" rel="stylesheet">

<body>
<header id="J-global-header" class="global-header">
    <div class="top-inner">
        <div id="sitenav" class="global-header-top-nav fn-clear">
            <ul class="global-header-top-nav-right">
                <li class="top-nav-menu top-nav-menu-user-info" data-role="user-info" data-test="test">
                    <div class="top-nav-menu-handle">
                        <div class="login">
                            <a href="${pageContext.request.contextPath}/login.html" class="J-login-btn" rel="nofollow" target="_self">登录</a></div>
                    </div>
                </li>
                <li class="top-nav-pipe">|</li>
                <li class="top-nav-menu top-nav-multi-menu top-nav-dl-app">
                    <div class="top-nav-menu-handle">
                        <a href="">
                            <i class="global-header-icon top-nav-dl-app-icon"></i>手机版
                        </a>
                    </div>
                    <div class="top-nav-menu-body top-nav-menu-qrcode">
                        <div class="top-nav-menu-bd-panel">
                            <div class="qrcode-img"></div>
                            <p>下载APP 领99元租车红包

                            </p>
                        </div>
                    </div>
                </li>

                <li class="top-nav-pipe">|</li>

                <li class="top-nav-menu top-nav-multi-menu top-nav-wx-guide">
                    <div class="top-nav-menu-handle"><i class="global-header-icon top-nav-wx-guide-icon"></i>微信</div>
                    <div class="top-nav-menu-body top-nav-menu-qrcode">
                        <div class="top-nav-menu-bd-panel">
                            <div class="qrcode-img"></div>
                            <p>扫一扫，关注微信公众号</p>
                        </div>
                    </div>
                </li>
                <li class="top-nav-pipe">|</li>
                <li class="top-nav-menu top-nav-multi-menu top-nav-order-lookup">
                    <div class="top-nav-menu-handle">注册<i class="top-nav-arrow"><em></em><span></span></i></div>
                    <div class="top-nav-menu-body top-nav-menu-list">
                        <div class="top-nav-menu-bd-panel">
                            <a href="${pageContext.request.contextPath}/login.html">立即注册</a>
                        </div>
                    </div>
                </li>
                <li class="top-nav-pipe">|</li>
                <li class="top-nav-menu top-nav-multi-menu top-nav-order-lookup">
                    <div class="top-nav-menu-handle">个人中心<i class="top-nav-arrow"><em></em><span></span></i></div>
                    <div class="top-nav-menu-body top-nav-menu-list">
                        <div class="top-nav-menu-bd-panel">
                            <a href="">进入个人中心</a>
                        </div>
                    </div>
                </li>
                <li class="top-nav-pipe">|</li>
            </ul>

            <div class="global-header-top-nav-left">
                <div class="top-nav-menu top-nav-multi-menu top-nav-contact">
                    <div class="top-nav-menu-handle">
                        24小时客服！内地热线：110-120
                        <i class="top-nav-arrow"><em></em><span></span></i>
                    </div>
                    <div class="top-nav-menu-body top-nav-menu-list">
                        <div class="top-nav-menu-bd-panel">
                            <ul>
                                <li>
                                    <span class="title">中国内地热线</span>
                                    <a href="tel:10101020" target="_self" class="tel-number">110-120</a>
                                </li>
                            </ul>
                            <div class="top-nav-menu-bd-code">
                                <div class="qrcode-img"></div>
                                <p class="title">关注微信公众号</p>
                                <p class="text">可查询/修改/取消订单</p>
                                <a class="J-show-robot" href="" target="_self" data-tj="/公用头部/在线客服">24小时在线客服</a>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="toolbar fn-clear">
        <div id="slog" class="logo fn-left">
            <a class="sbx-logo" title="思必行-租车" target="_self" href="">

            </a>
        </div>
        <div class="toolbar-site-header-nav">
            <ul class="login-page-header-nav fn-clear">
                <li><i class="global-login-iconfont">&#xe909;</i><span>有驾照就能租</span></li>
                <li><i class="global-login-iconfont">&#xe906;</i><span>地图导航</span></li>
                <li><i class="global-login-iconfont">&#xe908;</i><span>24小时服务在线</span></li>
            </ul>
        </div>

    </div>
</header>

<!--导航-->
<div class="nav">
    <ul class="nav-wrap clear_float" id="J_NavBox">
        <li class="menu-index menu-index-on">
            <a href="" target="_blank">首页</a>
            <span></span>
        </li>
        <li >
            <a href="${pageContext.request.contextPath}/selfrental/person_rentalcar.html" target="_blank">自驾租车</a>
            <span></span>
        </li>
        <li class>
            <a href="${pageContext.request.contextPath}/car/car.html" target="_blank">车型查询</a>
            <span></span>
        </li>
        <li>
            <a href="${pageContext.request.contextPath}/memberrent/members.html" target="_blank">会员租车</a>
            <span></span>
        </li>
        <li>
            <a href="${pageContext.request.contextPath}/store/store.html" target="_blank">营业网点</a>
            <span></span>
        </li>
        <li>
            <a href="" target="_blank">精彩活动</a>
            <span></span>
        </li>
    </ul>
</div>

<!--头部大图-->
<header class="top-banner" style="background-image: url(${pageContext.request.contextPath}/image/review.jpg)">
    <h1>
        <em>3,758,783条</em>
        精华分享
    </h1>
    <h3>是心得建议，帮你甄选好车行</h3>
</header>

<!--评论区-->
<main id="J-main-container" role="main" data-widget-cid="widget-1">
    <div class="ui-container">
        <div class="content-area">
            <!--评论区左-->
            <div class="content-col">
                <div class="ui-box-container">
                    <div data-plane="1" class="ui-box-content">
                        <div class="w1180">
                            <div class="showbox">
                                <div class="comment-box">
                                    <h3 style="cursor: pointer" class="comment-title">显示评论</h3>
                                    <ul style="display: none;" class="comment-ul">
                                        <li class="comment-li">
                                            <div class="comment-customer">
                                                <div class="customer-img">
                                                    <img src="${pageContext.request.contextPath}/images/customer1.png">
                                                </div>
                                                <div class="a-link">
                                                    <h5 class="customer-name">LiHua</h5>
                                                    <span class="type-text">车子很干净，nice，车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，车子很干净，nice，车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，车子很干净，nice，车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，车子很干净，nice，车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，车子很干净，nice，车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，车子很干净，nice，车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，车子很干净，nice，车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，车子很干净，nice，车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，车子很干净，nice，车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，车子很干净，nice，车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，车子很干净，nice，车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，车子很干净，nice，车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，nice车子很干净，nice</span>
                                                    <div class="comment-handle">
                                                        <span class="evaluate-time">2021/9/3 12:20:33</span>
                                                        <a class="replay-handle" href="">回复</a>
                                                        <span>|</span>
                                                        <a href="">
                                                            <span class="icon-act"></span>
                                                        </a>
                                                        <span  class="praise-number">100</span>
                                                    </div>

                                                </div>
                                            </div>
                                            <ul class="replay-ul">--%>
                                                <li>
                                                    <div class="replay-customer">
                                                        <div class="replay-img">
                                                            <img src="${pageContext.request.contextPath}/images/customer1.png">
                                                        </div>
                                                        <h6 class="replay-customer-name">Smith</h6>
                                                        <!--                            <h6>Smith</h6>-->
                                                        <span class="replay-text">这么好！我也租几辆玩玩。这么好！我也租几辆玩玩。这么好！我也租几辆玩玩。这么好！我也租几辆玩玩。这么好！我也租几辆玩玩。这么好！我也租几辆玩玩。这么好！我也租几辆玩玩。这么好！我也租几辆玩玩。这么好！我也租几辆玩玩。这么好！我也租几辆玩玩。这么好！我也租几辆玩玩。这么好！我也租几辆玩玩。这么好！我也租几辆玩玩。这么好！我也租几辆玩玩。这么好！我也租几辆玩玩。这么好！我也租几辆玩玩。这么好！我也租几辆玩玩。这么好！我也租几辆玩玩。这么好！我也租几辆玩玩。这么好！我也租几辆玩玩。这么好！我也租几辆玩玩。这么好！我也租几辆玩玩。这么好！我也租几辆玩玩。这么好！我也租几辆玩玩。这么好！我也租几辆玩玩。这么好！我也租几辆玩玩。</span>
                                                        <span class="replay-time">2021-9-9 10:20:11</span>
                                                    </div>
                                                </li>
                                            </ul>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!--评论区右-->
            <aside class="right-col">
                <section class="hot-city-box">
                    <header class="ui-box-head">
                        <h3 class="ui-box-head-title">热门城市用户评论</h3>
                    </header>
                    <div class="ui-box-container">
                        <div class="ui-box-content">
                            <ul class="country-list">
                                <li>
                                    <a href="" class="fn-clear" data-tj="/评论频道/右侧栏/点击热门城市评论/">
                                                <span class="flag">
                                                    <i class="icon-united-states" title="苏州"><img src="${pageContext.request.contextPath}/image/suzhou.jpg"></i>
                                                </span>
                                        <span class="name">
                                                    <span style="color: #1f6ecd;">苏州</span>
                                                    <span style="display:block;margin-top:10px;">天上天堂，地下苏杭</span>
                                                </span>
                                    </a>
                                </li>
                                <li>
                                    <a href="" class="fn-clear" data-tj="/评论频道/右侧栏/点击热门城市评论/">
                                                <span class="flag">
                                                    <i class="icon-united-states" title="上海"><img src="${pageContext.request.contextPath}/image/shanghai.jpg"></i>
                                                </span>
                                        <span class="name">
                                                    <span style="color: #1f6ecd;">上海</span>
                                                    <span style="display:block;margin-top:10px;">城市夜景感受城市风光</span>
                                                </span>
                                    </a>
                                </li>
                                <li>
                                    <a href="" class="fn-clear" data-tj="/评论频道/右侧栏/点击热门城市评论/">
                                                <span class="flag">
                                                    <i class="icon-united-states" title="杭州"><img src="${pageContext.request.contextPath}/image/hangzhou.jpeg"></i>
                                                </span>
                                        <span class="name">
                                                    <span style="color: #1f6ecd;">杭州</span>
                                                    <span style="display:block;margin-top:10px;">断桥的雪西湖的雨走进美丽</span>
                                                </span>
                                    </a>
                                </li>
                                <li>
                                    <a href="" class="fn-clear" data-tj="/评论频道/右侧栏/点击热门城市评论/">
                                                <span class="flag">
                                                    <i class="icon-united-states" title="南京"><img src="${pageContext.request.contextPath}/image/nanjing.jpg"></i>
                                                </span>
                                        <span class="name">
                                                    <span style="color: #1f6ecd;">南京</span>
                                                    <span style="display:block;margin-top:10px;">风景不殊，正自有山河之异</span>
                                                </span>
                                    </a>
                                </li>
                                <li>
                                    <a href="" class="fn-clear" data-tj="/评论频道/右侧栏/点击热门城市评论/">
                                                <span class="flag">
                                                    <i class="icon-united-states" title="丽江"><img src="${pageContext.request.contextPath}/image/lijing.jpg"></i>
                                                </span>
                                        <span class="name">
                                                    <span style="color: #1f6ecd;">丽江</span>
                                                    <span style="display:block;margin-top:10px;">玉龙雪峰白云飞</span>
                                                </span>
                                    </a>
                                </li>
                                <li>
                                    <a href="" class="fn-clear" data-tj="/评论频道/右侧栏/点击热门城市评论/">
                                                <span class="flag">
                                                    <i class="icon-united-states" title="大理"><img src="${pageContext.request.contextPath}/image/dali.jpg"></i>
                                                </span>
                                        <span class="name">
                                                    <span style="color: #1f6ecd;">大理</span>
                                                    <span style="display:block;margin-top:10px;">大理—梦开始的地方</span>
                                                </span>
                                    </a>
                                </li>
                                <li>
                                    <a href="" class="fn-clear" data-tj="/评论频道/右侧栏/点击热门城市评论/">
                                                <span class="flag">
                                                    <i class="icon-united-states" title="成都"><img src="${pageContext.request.contextPath}/image/chengdu.jpg"></i>
                                                </span>
                                        <span class="name">
                                                    <span style="color: #1f6ecd;">成都</span>
                                                    <span style="display:block;margin-top:10px;">驻足留步看一眼她秀丽的笑靥</span>
                                                </span>
                                    </a>
                                </li>
                                <li>
                                    <a href="" class="fn-clear" data-tj="/评论频道/右侧栏/点击热门城市评论/">
                                                <span class="flag">
                                                    <i class="icon-united-states" title="重庆"><img src="${pageContext.request.contextPath}/image/chongqing.jpg"></i>
                                                </span>
                                        <span class="name">
                                                    <span style="color: #1f6ecd;">重庆</span>
                                                    <span style="display:block;margin-top:10px;">美丽山城人在景中景在家中</span>
                                                </span>
                                    </a>
                                </li>
                                <li>
                                    <a href="" class="fn-clear" data-tj="/评论频道/右侧栏/点击热门城市评论/">
                                                <span class="flag">
                                                    <i class="icon-united-states" title="桂林"><img src="${pageContext.request.contextPath}/image/guilin.jpg"></i>
                                                </span>
                                        <span class="name">
                                                    <span style="color: #1f6ecd;">桂林</span>
                                                    <span style="display:block;margin-top:10px;">桂林山水甲天下</span>
                                                </span>
                                    </a>
                                </li>
                            </ul>
                        </div>
                    </div>
                </section>
            </aside>
        </div>
    </div>
</main>

<!--页脚-->
<div class="footer">
    <div class="w1180">
        <div class="website-advantage">
            <ul class="wadvantage-list">
                <li>
                    <span class="city"></span>
                    <p>450多座城市</p>
                </li>
                <li>
                    <span class="dunpai"></span>
                    <p>7000多服务网点</p>
                </li>
                <li>
                    <span class="car"></span>
                    <p>200余种车型</p>
                </li>
                <li>
                    <span class="sun"></span>
                    <p>24小时服务</p>
                </li>
            </ul>
        </div>
    </div>
</div>

<script>
    $(".comment-title").click(function (){
        var commentTitle = $(".comment-title").text();
        console.log(commentTitle);
        if(commentTitle == "显示评论"){
            $(".comment-title").text("关闭评论");
            getByPageNum(1);
            $(".replay-show-hiden").show();
        }else{
            $(".comment-title").text("显示评论");
            $(".replay-show-hiden").hide();
        }

    });
    function getByPageNum(pageNum) {
        var url;
        if(typeof(pageNum) == "number")
            url = "${pageContext.request.contextPath}/review/${serverResponse.data.carId}/page/" + pageNum;
        else {
            url = "${pageContext.request.contextPath}/review/${serverResponse.data.carId}/page";
            pageNum = 1;
        }
        $.get(url,null,
            function (result){
                $(".comment-ul").html("");
                if(result.code == 201){
                    var liEle = '<h4>暂无评论</h4>';
                    $(".comment-ul").append(liEle);
                }else{
                    console.log(result);

                    var infoArr =  result.data.list;
                    for(var i = 0 ; i <infoArr.length;i++){
                        var custId = infoArr[i].customer.custId;
                        var custName = infoArr[i].customer.custName;
                        var reviewStar = parseInt(infoArr[i].evaluate.reviewStar);
                        var reviewId = infoArr[i].evaluate.reviewId;
                        var reviewContent = infoArr[i].evaluate.reviewContent;
                        var reviewTime = infoArr[i].evaluate.reviewTime;
                        var reviewPraised = infoArr[i].evaluate.reviewPraised;
                        console.log(infoArr);
                        console.log(custName);
                        console.log(reviewStar);
                        console.log(reviewContent);
                        console.log(reviewTime);
                        console.log(reviewPraised);

                        var oneLiEle = '<li class="comment-li ' + reviewId + '">\n' +
                            '                                            <div class="comment-customer">\n' +
                            '                                                <div class="customer-img">\n' +
                            '                                                    <img src="">\n' +
                            '                                                </div>\n' +
                            '                                                <div class="a-link">\n' +
                            '                                                    <h5 class="customer-name">'+ custName +'</h5>\n' +
                            '                                                    <span class="type-text">'+ reviewContent +'</span>\n' +
                            '                                                    <div class="comment-handle">\n' +
                            '                                                        <span class="evaluate-time">'+ reviewTime +'</span>\n' +
                            '                                                        <a class="replay-handle" href="">回复</a>\n' +
                            '                                                        <span>|</span>\n' +
                            '                                                        <a href="javascript:void(0)">\n' +
                            '                                    <span style="display:none;" class="review-id">' + reviewId + '</span>\n' +
                            '                                   <span style="display:none;">0</span>' +
                            '                                        <span id = "praisedStatus' + reviewId + '" class="icon-act"></span>\n' +
                            '                                                        </a>\n' +
                            '                                                        <span  class="praise-number">100</span>\n' +
                            '                                                    </div>\n' +
                            '\n' +
                            '                                                </div>\n' +
                            '                                            </div>\n' +
                            '                                            <ul class="replay-ul">--%>\n' +
                            '                                            </ul>\n' +
                            '                                        </li>';
                        $(".comment-ul").append(oneLiEle);
                        var ulNewClass = "."+evaluateId;
                        var starsPostion = "0 ";
                        if (reviewStar == 5) {
                            starsPostion += "0";
                        }else{
                            starsPostion +=-(176-((reviewStar-1)*44))+"px";
                        }

                        // console.log(starsPostion);
                        // if(evaluateStarts == 5){
                        //     starsPostion += "0";
                        // }else if(evaluateStarts == 4){
                        //     starsPostion += "-44px";
                        // }else if(evaluateStarts == 3){
                        //     starsPostion += "-88px";
                        // }else if(evaluateStarts == 2){
                        //     starsPostion += "-132px";
                        // }else if(evaluateStarts == 1){
                        //     starsPostion += "-176px";
                        // }

                        $(ulNewClass+" .stars-show").css(
                            "background-position",starsPostion
                        )

                        var customerReplyVOArr = infoArr[i].customerReplyVOList;
                        for(var j = 0; j < customerReplyVOArr.length;j++) {
                            var replyCustName = customerReplyVOArr[j].customer.custName;
                            var replyContent = customerReplyVOArr[j].reply.replyContent;
                            var replyTime = customerReplyVOArr[j].reply.replyTime;
                            console.log(replyCustName);
                            console.log(replyContent);
                            console.log(replyTime);
                            var twoLiEle = '<li>\n' +
                                '                                                    <div class="replay-customer">\n' +
                                '                                                        <div class="replay-img">\n' +
                                '                                                            <img src="">\n' +
                                '                                                        </div>\n' +
                                '                                                        <h6 class="replay-customer-name">'+ replyCustName +'</h6>\n' +
                                '                                                        <!--                            <h6>Smith</h6>-->\n' +
                                '                                                        <span class="replay-text">'+ replyContent +'</span>\n' +
                                '                                                        <span class="replay-time">'+ replyTime +'</span>\n' +
                                '                                                    </div>\n' +
                                '                                                </li>';
                            $(ulNewClass+" .replay-ul").append(twoLiEle);
                        }

                    }
                    /* var pageNum = result.data.pageNum;
                     var pages = result.data.pages;
                     var prePage = result.data.prePage;
                     var nextPage = result.data.nextPage;
                     var hasPreviousPage = result.data.hasPreviousPage;
                     var hasNextPage = result.data.hasNextPage;
                     var total = result.data.total;
                     var pageEle = '';
                     '<li>\n' +
                     '                            共有<span>56</span>条评价\n' +
                     '                            第<span>1</span>页\n' +
                     '                            <a href="">上一页</a>\n' +
                     '                            <a href="">下一页</a>\n' +
                     '                            共有<span>5</span>页\n' +
                     '                        </li>'
                     pageEle +='<li>\n' +
                         '                            共有<span>' + total + '</span>条评价\n';

                     pageEle += '                            第<span>' + pageNum + '</span>页\n';
                     if(hasPreviousPage)
                         pageEle += '                            <a href="javascript:getByPageNum(' + prePage + ')">上一页</a>\n';
                     if(hasNextPage)
                         pageEle += '                            <a href="javascript:getByPageNum(' + nextPage + ')">下一页</a>\n';
                     pageEle += '                            共有<span>' + pages + '</span>页\n' ;
                     $(".comment-ul").append(pageEle);*/
                }

            }
            ,"json");

        $(".replay-show-hiden").click(function (event){
            var target = event.target;
            var custId = "${loginCustomer.custId}";

            if(custId == ""){
                window.location.href = "${pageContext.request.contextPath}/customer/login";
            }
            var text = target.parentElement.parentElement.children[1].textContent;
            if(text == "回复"){
                var status = target.parentElement.children[1].textContent;
                console.log(status);
                if(status == 0) {
                    target.parentElement.children[1].innerText = "1";
                    target.style.background = "url(http://r1nxp2i0y.hn-bkt.clouddn.com/images/praised_icon-act.svg)"

                }else {
                    target.parentElement.children[1].innerText = "0";
                    target.style.background = "url(http://r1nxp2i0y.hn-bkt.clouddn.com/images/praise_icon_act.svg)"
                }
                reviewId = target.parentElement.firstElementChild.textContent;
                console.log("reviewId是:"+reviewId);
                console.log("custId是:"+custId);
                console.log("status是:"+status);

                var url = "${pageContext.request.contextPath}/review/"+reviewId+'/'+custId+'/'+status;
                $.ajax({
                    type:"put",
                    url,
                    dataType:"json",
                    success:function (result) {
                        console.log("测试一下"+JSON.stringify(result))
                        target.parentElement.parentElement.lastElementChild.innerText=result.data;
                        var liClass = "."+reviewId;
                        $(liClass+ " .praise-number").text()
                    }
                });
            }
            console.log(custId);
        })
    }
</script>
</body>
</html>